<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 禁止视口缩放 -->
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable=no">
    <title>小米商城-小米官方网站，小米手机、红米手机正品专卖</title>
    <!-- 引入ico图标 -->
    <link rel="shortcut icon" href="favicon.ico">
    <!-- 引入iconfont -->
    <link rel="stylesheet" href="iconfont/iconfont.css">
    <!-- 引入重置默认样式 -->
    <link rel="stylesheet" href="css/reset.css">
    <!-- 引入自定义样式 -->
    <link rel="stylesheet" href="css/style.css">

</head>

<body>



    <!-- 导航 -->
    <nav class="nav">

        <!-- 广告 -->
        <div class="adv">
            <a href="#">
                <img src="./images/top-add.png" alt="">
            </a>
        </div>

        <!-- 搜索 -->
        <header class="header">
            <!-- 左边logo -->
            <h1 class="logo">
                <a href="#"><img src="./images/logo.png" alt=""></a>
            </h1>
            <!-- 中间的搜索框 -->
            <div class="search">
                <span class="iconfont icon-sousuo"></span>
                <input type="text" placeholder="搜索商品名称">
            </div>
            <!-- 右边我的 -->
            <div class="my">
                <a href="#" class="iconfont icon-dibutubiao_wode
            "></a>
            </div>
        </header>

        <!-- 导航列表 -->
        <ul class="navList">
            <li>
                <a href="#">推荐</a>
            </li>
            <li>
                <a href="#">手机</a>
            </li>
            <li>
                <a href="#">智能</a>
            </li>
            <li>
                <a href="#">电视</a>
            </li>
            <li>
                <a href="#">笔记本</a>
            </li>
            <li>
                <a href="#">家电</a>
            </li>
            <li>
                <span class="iconfont icon-down"></span>
            </li>
        </ul>


    </nav>


    <!-- banner -->
    <div class="banner">
        <ul>
            <li>
                <a href="#">
                    <img src="./images/banner1.jpg" alt="">
                </a>
            </li>
            <li>
                <a href="#">
                    <img src="./images/banner2.jpg" alt="">
                </a>
            </li>
            <li>
                <a href="#">
                    <img src="./images/banner3.jpg" alt="">
                </a>
            </li>
            <li>
                <a href="#">
                    <img src="./images/banner1.jpg" alt="">
                </a>
            </li>
        </ul>
    </div>




    <div class="menu">
        <ul>
            <li><a href="#"><img src="./images/nav1.png" alt=""></a></li>
            <li><a href="#"><img src="./images/nav2.webp" alt=""></a></li>
            <li><a href="#"><img src="./images/nav3.webp" alt=""></a></li>
            <li><a href="#"><img src="./images/nav4.webp" alt=""></a></li>
            <li><a href="#"><img src="./images/nav5.webp" alt=""></a></li>
            <li><a href="#"><img src="./images/nav6.webp" alt=""></a></li>
            <li><a href="#"><img src="./images/nav7.png" alt=""></a></li>
            <li><a href="#"><img src="./images/nav8.png" alt=""></a></li>
            <li><a href="#"><img src="./images/nav9.webp" alt=""></a></li>
            <li><a href="#"><img src="./images/nav10.png" alt=""></a></li>
        </ul>

    </div>


    <!-- 热销 -->
    <div class="hotSale">
        <ul>
            <li><a href="#"><img src="./images/hotsale01.webp" alt=""></a></li>
            <li>
                <a href="#"><img src="./images/hotsale02.webp" alt=""></a>
                <a href="#"><img src="./images/hotsale03.webp" alt=""></a>
            </li>

        </ul>

    </div>


    <div class="hot">
        <a href="#">
            <img src="./images/hot.webp" alt="">
        </a>
        <ul>
            <li>
                <a href="#">
                    <img src="./images/f5_l.jpg" alt="">
                    <p class="name">Xiaomi 11 Pro</p>
                    <p class="type">1/1.12''GN2｜骁龙888</p>
                    <p class="price">
                        <span>￥3999起</span>
                        <del>￥4999</del>
                    </p>
                    <div class="btn">
                        立即购买
                    </div>

                </a>
            </li>
            <li>
                <a href="#">
                    <img src="./images/f5_r.jpg" alt="">
                    <p class="name">Xiaomi 11 Pro</p>
                    <p class="type">1/1.12''GN2｜骁龙888</p>
                    <p class="price">
                        <span>￥3999起</span>
                        <del>￥4999</del>
                    </p>
                    <div class="btn">
                        立即购买
                    </div>

                </a>
            </li>
            <li>
                <a href="#">
                    <img src="./images/f5_l.jpg" alt="">
                    <p class="name">Xiaomi 11 Pro</p>
                    <p class="type">1/1.12''GN2｜骁龙888</p>
                    <p class="price">
                        <span>￥3999起</span>
                        <del>￥4999</del>
                    </p>
                    <div class="btn">
                        立即购买
                    </div>

                </a>
            </li>
            <li>
                <a href="#">
                    <img src="./images/f5_r.jpg" alt="">
                    <p class="name">Xiaomi 11 Pro</p>
                    <p class="type">1/1.12''GN2｜骁龙888</p>
                    <p class="price">
                        <span>￥3999起</span>
                        <del>￥4999</del>
                    </p>
                    <div class="btn">
                        立即购买
                    </div>

                </a>
            </li>
            <li>
                <a href="#">
                    <img src="./images/f5_l.jpg" alt="">
                    <p class="name">Xiaomi 11 Pro</p>
                    <p class="type">1/1.12''GN2｜骁龙888</p>
                    <p class="price">
                        <span>￥3999起</span>
                        <del>￥4999</del>
                    </p>
                    <div class="btn">
                        立即购买
                    </div>

                </a>
            </li>
            <li>
                <a href="#">
                    <img src="./images/f5_r.jpg" alt="">
                    <p class="name">Xiaomi 11 Pro</p>
                    <p class="type">1/1.12''GN2｜骁龙888</p>
                    <p class="price">
                        <span>￥3999起</span>
                        <del>￥4999</del>
                    </p>
                    <div class="btn">
                        立即购买
                    </div>

                </a>
            </li>
            <li>
                <a href="#">
                    <img src="./images/f5_l.jpg" alt="">
                    <p class="name">Xiaomi 11 Pro</p>
                    <p class="type">1/1.12''GN2｜骁龙888</p>
                    <p class="price">
                        <span>￥3999起</span>
                        <del>￥4999</del>
                    </p>
                    <div class="btn">
                        立即购买
                    </div>

                </a>
            </li>
            <li>
                <a href="#">
                    <img src="./images/f5_r.jpg" alt="">
                    <p class="name">Xiaomi 11 Pro</p>
                    <p class="type">1/1.12''GN2｜骁龙888</p>
                    <p class="price">
                        <span>￥3999起</span>
                        <del>￥4999</del>
                    </p>
                    <div class="btn">
                        立即购买
                    </div>

                </a>
            </li>
            <li>
                <a href="#">
                    <img src="./images/f5_l.jpg" alt="">
                    <p class="name">Xiaomi 11 Pro</p>
                    <p class="type">1/1.12''GN2｜骁龙888</p>
                    <p class="price">
                        <span>￥3999起</span>
                        <del>￥4999</del>
                    </p>
                    <div class="btn">
                        立即购买
                    </div>

                </a>
            </li>
            <li>
                <a href="#">
                    <img src="./images/f5_r.jpg" alt="">
                    <p class="name">Xiaomi 11 Pro</p>
                    <p class="type">1/1.12''GN2｜骁龙888</p>
                    <p class="price">
                        <span>￥3999起</span>
                        <del>￥4999</del>
                    </p>
                    <div class="btn">
                        立即购买
                    </div>

                </a>
            </li>
        </ul>
        <a href="#" class="more">
            更多小米手机产品 &gt;
        </a>
    </div>


    <div class="tv">
        <a href="#">
            <img src="./images/tv.webp" alt="">
        </a>
    </div>


    <div class="others">
        <ul>
            <li><a href="#"><img src="./images/others01.webp" alt=""></a></li>
            <li><a href="#"><img src="./images/others02.webp" alt=""></a></li>
            <li><a href="#"><img src="./images/others03.webp" alt=""></a></li>
            <li><a href="#"><img src="./images/others04.webp" alt=""></a></li>
        </ul>
    </div>


    <div class="new">
        <a href="#">
            <img src="./images/new.webp" alt="">
        </a>
    </div>



    <!-- 底部固定tab标签页切换 -->
    <div class="tab">
        <ul>
            <li>
                <a href="#" class="cur">
                    <span class="iconfont icon-shouye"></span>
                    <p>首页</p>
                </a>
            </li>
            <li>
                <a href="#">
                    <span class="iconfont icon-icon04"></span>
                    <p>分类</p>
                </a>
            </li>
            <li>
                <a href="#">
                    <span class="iconfont icon-xingqiu"></span>
                    <p>米圈</p>
                </a>
            </li>
            <li>
                <a href="#">
                    <span class="iconfont icon-gouwuche
                    "></span>
                    <p>购物车</p>
                </a>
            </li>
            <li>
                <a href="#">
                    <span class="iconfont  icon-dibutubiao_wode
                    "></span>
                    <p>我的</p>
                </a>
            </li>


        </ul>
    </div>








</body>


<!-- rem适配的js代码 -->
<script>
    function setFont() {
        var winW = document.documentElement.clientWidth
        var htmlFont = winW / 10;
        document.getElementsByTagName('html')[0].style.fontSize = htmlFont + 'px';
    }
    setFont();
    window.onresize = function () {
        setFont();
    }
</script>

</html>